package com.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.entity.UserGoWuChe;
import com.example.mapper.UserGouWUCheMapper;
import com.example.service.UserGouWuCheService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserGouWuCheServiceImpl extends ServiceImpl<UserGouWUCheMapper, UserGoWuChe> implements UserGouWuCheService {

    @Autowired
    private UserGouWUCheMapper userGouWUCheMapper;

    public List<UserGoWuChe> selectList(UserGoWuChe userGoWuChe) {
        List<UserGoWuChe> list = userGouWUCheMapper.selectList(new QueryWrapper<UserGoWuChe>().like("openid", userGoWuChe.getOpenid()));
        return list;
    }


}

